widget: Special-case popover in snapshot
authorTimm Bäder <mail@baedert.org>
Sat, 6 May 2017 14:32:17 +0000 (16:32 +0200)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 20 Jul 2017 01:27:12 +0000 (21:27 -0400)
Just like we do it for GtkWindow.

gtk/gtkwidget.c

index 57c8a64f9edf02b81fe9583e04cd2a311ec702b2..43c8b0c9327caca4cb9a16f22c5946a48d84fbe7 100644 (file)
@@ -15416,7 +15416,8 @@ gtk_widget_snapshot (GtkWidget   *widget,
 
   _gtk_widget_get_allocation (widget, &allocation);
 
-  if (!GTK_IS_WINDOW (widget))
+  if (!GTK_IS_WINDOW (widget) &&
+      !GTK_IS_POPOVER (widget))
     {
       gtk_snapshot_offset (snapshot, margin.left, margin.top);
       gtk_css_style_snapshot_background (style,